/** @format */

import Vue from "vue"
import Vuex from "vuex"

Vue.use(Vuex)

import auth from "./module/auth"
import app from "./module/app"

import createPersistedState from "vuex-persistedstate"
// import imgTools from "./module/imgTools"

export default new Vuex.Store({
    state: {
        //
    },
    mutations: {
        //
    },
    actions: {
        //
    },
    modules: {
        app,
        auth
        // imgTools
    },
    plugins: [createPersistedState({
        key: "__vuex_status__",
        storage: window.localStorage,
        paths: ["app", "auth"]
    })]
})
